[PATCH] coredump filter: fix stack overflow with =all
authorLuca Boccassi <bluca@debian.org>
Wed, 26 Apr 2023 13:18:04 +0000 (14:18 +0100)
committerArnaud Rebillout <arnaudr@debian.org>
Mon, 13 Apr 2026 07:18:40 +0000 (14:18 +0700)
commit7570ae0210136be03ce7250dfec3cc4309295931
tree16d6b70355a0c81ea5a2d7aa23cc87f424a8d67f
parent1faef9dbb33cad727f48479e6993fdb0153b1116
[PATCH] coredump filter: fix stack overflow with =all

We translate 'all' to UNIT64_MAX, which has a lot more 'f's. Use the
helper macro, since a decimal uint64_t will always be >> than a hex
representation.

root@image:~# systemd-run -t --property CoredumpFilter=all ls /tmp
Running as unit: run-u13.service
Press ^] three times within 1s to disconnect TTY.
*** stack smashing detected ***: terminated
[137256.320511] systemd[1]: run-u13.service: Main process exited, code=dumped, status=6/ABRT
[137256.320850] systemd[1]: run-u13.service: Failed with result 'core-dump'.

Origin: upstream, https://github.com/systemd/systemd/commit/37232d55a7bcace37280e28b207c85f5ca9b3f6b
Forwarded: not-needed
Last-Update: 2025-07-27

Gbp-Pq: Name fix-stack-overflow-in-coredump-filter-0.patch
src/basic/macro.h
src/shared/coredump-util.c